x86/HVM: honor cache attribute pinning for RAM only
authorJan Beulich <jbeulich@suse.com>
Fri, 4 Mar 2016 13:12:11 +0000 (14:12 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Mar 2016 13:12:11 +0000 (14:12 +0100)
commit0acc7010ac226d384a4287bfd828894baf13ebe5
tree999cb8716317db588ab585421d41f33b77f24385
parent8ac9cc7a72481d8578e36db8f19835109e99817e
x86/HVM: honor cache attribute pinning for RAM only

Call hvm_get_mem_pinned_cacheattr() for RAM ranges only, and only when
the guest has a physical device assigned: XEN_DOMCTL_pin_mem_cacheattr
is documented to be intended for RAM only.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/mtrr.c
xen/arch/x86/mm/shadow/multi.c